/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.hugoo.test;

import com.hugoo.core.Conf;
import com.hugoo.core.db.DBC;
import com.hugoo.imp.buzz.ImpInfo;
import com.hugoo.imp.buzz.XlsImpBuzz;
import java.io.IOException;

/**
 *
 * @author Lovelock.Chan
 */
public class T2 {

    public static void main(String[] args) throws IOException {
        Conf.reload("/prop/conf.properties");
        String[][] nn = {{"A001", "神州大众20120914上海柯斯(29176)密码P000012901_包装清单.xls"},
            {"A002", "神州大众20120914上海柯斯(29176)密码P000012900_包装清单.xls"},
            {"A003", "神州大众20120914上海柯斯(29176)密码8247_散号重新包装清单.xls"},
            {"B001", "神州畅听20120914上海柯斯(29176)密码P000012903_包装清单.xls"},
            {"B002", "神州畅听20120914上海柯斯(29176)密码P000012902_包装清单.xls"},
            {"B003", "神州畅听20120914上海柯斯(29176)密码8250_散号重新包装清单.xls"},
            {"C001", "20120921上海柯斯38901密码P000012918_包装清单.xls"},
            {"C002", "20120921上海柯斯38901密码P000012917_包装清单.xls"},
            {"D001", "20120909东方英卡68055密码P000012878_包装清单.xls"},
            {"D002", "20120909东方英卡68055密码P000012877_包装清单.xls"},
            {"D003", "20120909东方英卡68055密码8241_散号重新包装清单.xls"},
            {"E001", "20120905上海柯斯(63623)密码P000012858_包装清单.xls"},
            {"E002", "20120905上海柯斯(63623)密码P000012857_包装清单.xls"},
            {"E003", "20120905上海柯斯(63623)密码8238_散号重新包装清单.xls"}};
        for (String[] x : nn) {
            ImpInfo txtImpBuzz = new XlsImpBuzz("PKGX", "F:/bak/tk/"+x[1], x[0], null);//94828
            DBC dbc = new DBC();
            long c = System.currentTimeMillis();
            dbc.initDatabase(txtImpBuzz);
            System.out.println("初始数据库花费：" + (System.currentTimeMillis() - c));
            dbc.impData(txtImpBuzz);
            System.out.println(System.currentTimeMillis() - c);
        }
    }
}
